<template>
  <div class="bar">
    <div class="divtop">
        <div class="topbox">
            <div class="img" @click="$router.go(-1)">
                <img src=""
                    alt="">
            </div>
            <div class="my">{{ text }}</div>
            <div class="div">
                <van-icon name="ellipsis" />
            </div>
        </div>
    </div>
  </div>
</template>

<script>
export default {
    props: {
        text:'',
    }
}
</script>

<style lang="scss" scoped>
.bar{
    width: 100%;
    .divtop {
            width: 100%;
            height: 0.45rem;
            background-color: #ffffff;
    
            .topbox {
                width: 95%;
                padding: 0.05rem 2.5%;
                display: flex;
                justify-content: space-between;
                align-items: center;
    
                .img {
                    width: 0.555rem;
                    height: 0.45rem;
                    display: flex;
    
                    img {
                        width: 60%;
                        height: 60%;
                    }
                }
    
                .my {
                    font-size: 0.17rem;
                }
    
                .div {
                    font-size: 0.15rem;
                    box-sizing: border-box;
                    height: 100%;
                }
            }
        }
}
</style>